Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

308
Views
Uncaught Error: Script error for "core.js" - Trying simple console log from module

I'm making a Chrome extension and therefore trying to use require.js, but unsuccessful to "require" the first file to be load. What i am doing wrong?


Project details

Error:

Console Error

Project structure:

enter image description here

app.js:

var jq = $.noConflict(true);
function docReady() {

    requirejs.config({
        baseUrl: 'app',
        paths: {

        }
    });

    require(['core'], function(core) {
        core.log();
    });
}

jq(document).ready(docReady);

core.js:

define(function () {
    var methods = {};
    methods.log = function() {
        console.log('testing...');
    }

    return methods;
});

Yes, i do load require.js in content_scripts inside the manifest.json, before loading app.js

I'm trying to do something simple as displaying a console.log from my second file, but after so many tries idk what to do. May someone help me?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Your manifest needs to loading the core.js before or after the content load event

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!